package com.lin.cloud.disk.entity.request.department;

import com.lin.cloud.disk.common.entity.request.AccountRequestDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 修改部门请求实体类
 * @author ljc
 * @date 2021/1/26 17:18
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UpdateDepartmentRequest extends AccountRequestDTO {

    @ApiModelProperty(value = "部门id", name = "id")
    @NotNull(message = "部门id不能为空")
    private Long departmentId;

    @ApiModelProperty(value = "部门名称", name = "departmentName")
    @NotBlank(message = "部门名称不能为空")
    private String departmentName;

    @ApiModelProperty(value = "部门描述", name = "departmentDesc")
    private String departmentDesc;

    /**
     * 父部门ID 与权限无关 id==parent_id为一级部门
     */
    @ApiModelProperty(value = "父部门id", name = "parentId")
    private Long parentId;

}
